package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;

public class BeginBean extends Bean {

  private Image begin;
  private static int beginX;
  private static int beginOldY;
  private static int beginY;
  private static int beginW;
  private static int beginH;

  public void initBean(Magicanvas cvs) {
    this.begin = getImage("/res/img/begin.gif");
    trackerImage(this.begin, cvs);
    beginW = this.begin.getWidth(cvs);
    beginH = this.begin.getHeight(cvs);
    beginX = 172 - beginW - 30;
    beginY = 614 - RoadBean.getRoadH() - 27 - beginH;
    beginOldY = beginY;
  }

  public Image getBegin() {
    return this.begin;
  }

  public static int getBeginX() {
    return beginX;
  }

  public void setBeginX(int beginX) {
    beginX = beginX;
  }

  public static int getBeginY() {
    return beginY;
  }

  public static void setBeginY(int beginY) {
    beginY = beginY;
  }

  public int getBeginW() {
    return beginW;
  }

  public void setBeginW(int beginW) {
    beginW = beginW;
  }

  public static int getBeginH() {
    return beginH;
  }

  public void setBeginH(int beginH) {
    beginH = beginH;
  }

  public static int getBeginOldY() {
    return beginOldY;
  }
}
